home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Creatures 2.xpl < prev    next >
Text File  |  2000-01-31  |  2KB  |  85 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Program Options\Games\Creatures 2"
  5. "NAME"="Creatures II Options"
  6. "VERSION"="1.26"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable Burble Speech"
  9. "TEXT 2"="Enable Smooth Scrolling"
  10. "TEXT 3"="Enable "NO CD-ROM NEEDED" cheat"
  11. "DESCRIPTION 1"="Some more options for Creatures II."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16. "COMMENT 2"="Thanks to CptSiskoX for his help!"
  17.  
  18.  
  19. sPath1="HKEY_CURRENT_USER\Software\CyberLife Technology\Creatures 2\1.0\"
  20.  
  21. sValue1="Burble"
  22. sValue2="Smooth Scrolling"
  23. sValue3="No CD-ROM needed"
  24.  
  25. sPath3a="HKLM\SOFTWARE\CyberLife Technology\World Switcher\World.sfc\1.0\"
  26. sPath3b="HKLM\SOFTWARE\CyberLife Technology\World Switcher\Default Info\1.0\"
  27.  
  28. Sub Plugin_Initialize 
  29.  if RegPathExists(sPath1) then
  30.     i=RegReadValue(sPath1 & sValue1)
  31.     if i=1 then
  32.        Call SetUIElement(1,True)
  33.     end if
  34.  
  35.     i=RegReadValue(sPath1 & sValue2)
  36.     if i=1 then
  37.        Call SetUIElement(1,True)
  38.     end if
  39.  
  40.  
  41.     i=RegReadValue(sPath1 & sValue3)
  42.     if i="j" then
  43.        Call SetUIElement(1,True)
  44.     end if
  45.  
  46.  
  47.  else
  48.    Disable
  49.  end if
  50. End Sub
  51.  
  52. Sub Plugin_CheckData(ElementIndex)
  53. End Sub
  54.  
  55. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  56.  i=GetUIElement(1)
  57.  if i=true then
  58.     Call RegWriteValue(sPath1 & sValue1,1,2)
  59.  else
  60.     Call RegWriteValue(sPath1 & sValue1,0,2)
  61.  end if
  62.  
  63.  i=GetUIElement(2)
  64.  if i=true then
  65.     Call RegWriteValue(sPath1 & sValue2,1,2)
  66.  else
  67.     Call RegWriteValue(sPath1 & sValue2,0,2)
  68.  end if
  69.  
  70.  
  71.  i=GetUIElement(3)
  72.  if i=true then
  73.     Call RegWriteValue(sPath1 & sValue3,"j",1)
  74.     Call RegWriteValue(sPath3a & sValue3,"!5",1)
  75.     Call RegWriteValue(sPath3b & sValue3,"!5",1)
  76.  else
  77.     Call RegWriteValue(sPath1 & sValue3,"n",1)
  78.  end if
  79.  
  80.  
  81. End Sub
  82.  
  83. Sub Plugin_Terminate 
  84. End Sub
  85.